package com.infotel.tchoutchou;

public class Train {
    private String nom;
    private double vitesse;
    private Troncon troncon;

    public Train(String nom, double vitesse, Troncon troncon) {
        this.nom = nom;
        this.vitesse = vitesse;
        this.troncon = troncon;
    }

    public String getNom() {
        return nom;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public double getVitesse() {
        return vitesse;
    }

    public void setVitesse(double vitesse) {
        this.vitesse = vitesse;
    }

    public Troncon getTroncon() {
        return troncon;
    }

    public void setTroncon(Troncon troncon) {
        this.troncon = troncon;
    }

 
    
}
